#!/bin/bash

set -e

cli_directory=$(dirname $0)/.venv/nrp-cli

test -d $cli_directory || {
  echo "OARepo client not found, see the webpage for tutorial on initializing OA Repository"
  exit 1
}

source $cli_directory/bin/activate
$cli_directory/bin/nrp-cli $@